//
//  NewTableViewCell.m
//  GitBucket
//
//  Created by 3024 on 15/11/10.
//  Copyright © 2015年 ios25. All rights reserved.
//

#import "NewTableViewCell.h"

@implementation NewTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.aTextView.userInteractionEnabled = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

//重写setmodel
-(void)setModel:(NewCellModel *)model
{
    _avatarImageView.image = model.avatarImage;
    
    _typeImageView.image = model.typeImage;
    
    _aTextView.text = model.textViewString;
    
    if (![model.comment isKindOfClass:[NSNull class]]) {
        _commentLabel.text = model.comment;
        
    }
    _dateLabel.text = model.date;
    
    _dataDic = model.aNewdic;
}

@end
